package com.project.service.base;

/**
 * Created by TAO on 2015/11/10.
 */
//验证码服务接口
public interface CaptchaService {
    //添加验证码到cache
    public void addCaptcha(String key, String captcha);

    //通过手机号从cache获取验证码
    public String getCaptchaValueByMobile(String mobile);

    //通过邮箱从cache获取验证码
    public String getCaptchaValueByEmail(String email);

    //通过用户名从cache获取验证码
    public String getCaptchaValueByUsername(String username);

    //删除 验证码
    public void removeCaptcha(String key);
}
